import{appPort} from'./config/setting.js'
import{routes} from './router/index.js'
import{regTemlating} from './render/index.js'


import koa from "koa";
import bodyParser from "koa-bodyparser";
import {syns} from './db/index.js'




let app =new koa()

app.use(regTemlating())

app.use(bodyParser())

app.use(routes())

app.listen(appPort)

console.log(`http://localhost${appPort}`);
